import { createI18n } from "vue-i18n";

import zh from "./langs/zh";
import en from "./langs/en";
import jp from "./langs/jp";
import es from "./langs/es";
import ko from "./langs/ko";
import pyc from "./langs/рус";
import fr from "./langs/fr";



const i18n = createI18n({
    locale: localStorage.getItem("language") || "en",
    // locale: "en",
    fallbackLocale: "en",
    legacy: false,
    messages: {
        zh,
        en,
        jp,
        es,
        ko,
        pyc,
        fr
    }
});

export default i18n;
